Adwaita: Drop some deprecated style properties
authorMatthias Clasen <mclasen@redhat.com>
Sun, 20 Dec 2015 04:24:27 +0000 (23:24 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 20 Dec 2015 04:24:27 +0000 (23:24 -0500)
These can now be replaces with min-width/min-height.

gtk/theme/Adwaita/_common.scss
gtk/theme/Adwaita/gtk-contained-dark.css
gtk/theme/Adwaita/gtk-contained.css

index 52429d03a52a6d9dc0d7ea59c443234933e30f95..8dbd62d6da669a80c6efcf54277d60507ad32c38 100644 (file)
@@ -10,7 +10,6 @@ $asset_suffix: if($variant=='dark', '-dark', '');
   -GtkToolButton-icon-spacing: 4;
   -GtkTextView-error-underline-color: $error_color;
 
-  -GtkCheckButton-indicator-size: 16;
   -GtkCheckMenuItem-indicator-size: 16;
 
   // The size for scrollbars. The slider is 2px smaller, but we keep it
@@ -22,7 +21,6 @@ $asset_suffix: if($variant=='dark', '-dark', '');
   -GtkScrolledWindow-scrollbars-within-bevel: 1;
 
   -GtkToolItemGroup-expander-size: 11;
-  -GtkExpander-expander-size: 16;
   -GtkTreeView-expander-size: 11;
 
   -GtkTreeView-horizontal-separator: 4;
@@ -1942,11 +1940,6 @@ scrollbar {
  **********/
 
 switch {
-  @at-root * {
-    -GtkSwitch-slider-width: 45px;
-    -GtkSwitch-slider-height: 27px;
-  }
-
   font-weight: bold;
   font-size: smaller;
   outline-offset: -4px;
@@ -1996,9 +1989,9 @@ switch {
         background-image: none;
         background-color: $insensitive_bg_color;
   }
-  // slider styling
-  // switch slider doesn't respond to its own states but relies on the switch ones
   slider {
+    min-width: 45px;
+    min-height: 27px;
     border: 1px solid;
     border-radius: 3px;
     @include button(normal);
@@ -2146,6 +2139,8 @@ checkbutton.text-button, radiobutton.text-button {
 
 radiobutton radio,
 checkbutton check {
+  min-width: 16px;
+  min-height: 16px;
   margin: 0 2px 0 2px;
   &:only-child {
     margin: 0;
@@ -2420,7 +2415,8 @@ progressbar {
   &:backdrop progress { @extend %scale_highlight:backdrop; } // states not passed here as well
 
   &.osd {
-    -GtkProgressBar-min-horizontal-bar-height: 3;
+    min-width: 3px;
+    min-height: 3px;
     trough {
       border-style: none;
       border-radius: 0;
@@ -2701,6 +2697,8 @@ row {
 
 expander {
   & arrow {
+    min-width: 16px;
+    min-height: 16px;
     -gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
     &:dir(rtl) { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic-rtl'); }
     &:hover { color: lighten($fg_color,30%); } //only lightens the arrow
index bd67454569fc948af055feff54841b11e63150bc..445f66184a7565f0ee048ff1d929baa748d7ad30 100644 (file)
@@ -2,12 +2,10 @@
   padding: 0;
   -GtkToolButton-icon-spacing: 4;
   -GtkTextView-error-underline-color: #cc0000;
-  -GtkCheckButton-indicator-size: 16;
   -GtkCheckMenuItem-indicator-size: 16;
   -GtkScrolledWindow-scrollbar-spacing: 0;
   -GtkScrolledWindow-scrollbars-within-bevel: 1;
   -GtkToolItemGroup-expander-size: 11;
-  -GtkExpander-expander-size: 16;
   -GtkTreeView-expander-size: 11;
   -GtkTreeView-horizontal-separator: 4;
   -GtkWidget-text-handle-width: 20;
@@ -2529,9 +2527,6 @@ switch {
   color: #eeeeec;
   background-image: linear-gradient(to bottom, #2d3232);
   text-shadow: 0 1px rgba(0, 0, 0, 0.1); }
-  * {
-    -GtkSwitch-slider-width: 45px;
-    -GtkSwitch-slider-height: 27px; }
   switch:active {
     color: white;
     border-color: #0f2b48;
@@ -2562,6 +2557,8 @@ switch {
     background-image: none;
     background-color: #333636; }
   switch slider {
+    min-width: 45px;
+    min-height: 27px;
     border: 1px solid;
     border-radius: 3px;
     color: #eeeeec;
@@ -2994,6 +2991,8 @@ checkbutton.text-button, radiobutton.text-button {
 
 radiobutton radio,
 checkbutton check {
+  min-width: 16px;
+  min-height: 16px;
   margin: 0 2px 0 2px; }
   radiobutton radio:only-child,
   checkbutton check:only-child {
@@ -3419,7 +3418,8 @@ progressbar {
       border-bottom-right-radius: 3px;
       border-bottom-left-radius: 3px; }
   progressbar.osd {
-    -GtkProgressBar-min-horizontal-bar-height: 3; }
+    min-width: 3px;
+    min-height: 3px; }
     progressbar.osd trough {
       border-style: none;
       border-radius: 0;
@@ -3828,6 +3828,8 @@ row {
  * Expanders *
  *************/
 expander arrow {
+  min-width: 16px;
+  min-height: 16px;
   -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
   expander arrow:dir(rtl) {
     -gtk-icon-source: -gtk-icontheme("pan-end-symbolic-rtl"); }
index 78fc0f610324a5978ed10ed8ec5a014c2c49d1c0..434b44948f1e0d8a4b510d75b1be9aa64b6f49ad 100644 (file)
@@ -2,12 +2,10 @@
   padding: 0;
   -GtkToolButton-icon-spacing: 4;
   -GtkTextView-error-underline-color: #cc0000;
-  -GtkCheckButton-indicator-size: 16;
   -GtkCheckMenuItem-indicator-size: 16;
   -GtkScrolledWindow-scrollbar-spacing: 0;
   -GtkScrolledWindow-scrollbars-within-bevel: 1;
   -GtkToolItemGroup-expander-size: 11;
-  -GtkExpander-expander-size: 16;
   -GtkTreeView-expander-size: 11;
   -GtkTreeView-horizontal-separator: 4;
   -GtkWidget-text-handle-width: 20;
@@ -2535,9 +2533,6 @@ switch {
   color: #2e3436;
   background-image: linear-gradient(to bottom, #cacac8);
   text-shadow: 0 1px rgba(0, 0, 0, 0.1); }
-  * {
-    -GtkSwitch-slider-width: 45px;
-    -GtkSwitch-slider-height: 27px; }
   switch:active {
     color: white;
     border-color: #184472;
@@ -2569,6 +2564,8 @@ switch {
     background-image: none;
     background-color: #f1f1f1; }
   switch slider {
+    min-width: 45px;
+    min-height: 27px;
     border: 1px solid;
     border-radius: 3px;
     color: #2e3436;
@@ -3156,6 +3153,8 @@ checkbutton.text-button, radiobutton.text-button {
 
 radiobutton radio,
 checkbutton check {
+  min-width: 16px;
+  min-height: 16px;
   margin: 0 2px 0 2px; }
   radiobutton radio:only-child,
   checkbutton check:only-child {
@@ -3581,7 +3580,8 @@ progressbar {
       border-bottom-right-radius: 3px;
       border-bottom-left-radius: 3px; }
   progressbar.osd {
-    -GtkProgressBar-min-horizontal-bar-height: 3; }
+    min-width: 3px;
+    min-height: 3px; }
     progressbar.osd trough {
       border-style: none;
       border-radius: 0;
@@ -3998,6 +3998,8 @@ row {
  * Expanders *
  *************/
 expander arrow {
+  min-width: 16px;
+  min-height: 16px;
   -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
   expander arrow:dir(rtl) {
     -gtk-icon-source: -gtk-icontheme("pan-end-symbolic-rtl"); }